package cn.rkylin.oms.warehouseDocking.service.qimen;

import cn.rkylin.oms.warehouseDocking.dao.qimen.IStockInCreateDAO;
import cn.rkylin.oms.warehouseDocking.vo.qimen.StockInCreate;
import cn.rkylin.oms.warehouseDocking.vo.qimen.StockInSkuCreate;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 奇门获取需要创建的入库单信息服务层
 * 
 * @author fengwang
 * @created 2017年11月7日
 */
@Service("stockInCreateService")
public class StockInCreateService {

    @Autowired
    IStockInCreateDAO iStockInCreateDAO;

    /**
     * 奇门获取需要创建的退货入库单ID
     * 
     * @param reqMap
     * @return
     * @throws Exception
     */
    public List<StockInCreate> selectInfoStockInIdByPrjIdAndStorId(Map<String, Object> reqMap) throws Exception {
        return iStockInCreateDAO.selectInfoStockInIdByPrjIdAndStorId(reqMap);
    }

    /**
     * 奇门获取需要创建的退货入库单信息
     *
     * @param reqMap
     * @return
     * @throws Exception
     */
    public StockInCreate selectInfoStockInByPrjIdAndStorId(Map<String, Object> reqMap) throws Exception {
        return iStockInCreateDAO.selectInfoStockInByPrjIdAndStorId(reqMap);
    }

    /**
     * 奇门获取需要创建的退货入库单商品信息
     *
     * @param reqMap
     * @return
     * @throws Exception
     */
    public List<StockInSkuCreate> selectInfoStockInSkuByStockId(Map<String, Object> reqMap) throws Exception {
        return iStockInCreateDAO.selectInfoStockInSkuByStockId(reqMap);
    }
}
